package process_demo.attributes.priority;

/**
 * @author haomin
 * @date 2022/04/19 20:23
 **/
public class Main {
    public static void main(String[] args) {
        Thread main = Thread.currentThread();

        System.out.println(main.getPriority());
        main.setPriority(Thread.MAX_PRIORITY);
        System.out.println(main.getPriority());
        main.setPriority(Thread.NORM_PRIORITY);
        System.out.println(main.getPriority());
        main.setPriority(Thread.MIN_PRIORITY);
        System.out.println(main.getPriority());
    }
}